/**
 * 仿JXON内置API parse方法
 * @param {String} JavaData JSON数据格式
 * @returns Object 
 */


 function parse(JavaData) {
    let webData = {}
    let JavaDataStr = JavaData.replace(/{|}|"|\s/g,'')
    let JavaDataArr = JavaDataStr.split(',')
    for(let val of JavaDataArr){
        var temp = val.split(':')
        let key = temp[0]
        let value  = temp[1]
        webData[key]= value 
    }
    return webData
}


/**
 * 仿JSON内置API stringify方法
 * @param{Object} webData JS标准普通对象
 * returns String
 */
    function stringify(webData){
    let arr = []
    for(let key in webData){
        let temp = `"${key}":"${webData[key]}"`
        arr.push(temp)
    }
    return `{${arr.join(',')}}`
    }